.class Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$VideoRunnable;
.source "RewardsView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setCurrentTime(I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

.field final synthetic val$time:I


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;I)V
    .locals 0
    .parameter
    .parameter "x0"
    .parameter

    .prologue
    .line 778
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iput p3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;->val$time:I

    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$VideoRunnable;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V

    return-void
.end method


# virtual methods
.method public doVideoRun()V
    .locals 8

    .prologue
    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 782
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "RewardsView"

    const-string v3, "Executing \'setCurrentTime\' {0}"

    new-array v4, v7, [Ljava/lang/Object;

    iget v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;->val$time:I

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v4, v6

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 783
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;->getVideoView()Landroid/widget/VideoView;

    move-result-object v0

    .line 784
    .local v0, videoView:Landroid/widget/VideoView;
    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;->val$time:I

    if-ltz v1, :cond_0

    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;->val$time:I

    invoke-virtual {v0}, Landroid/widget/VideoView;->getDuration()I

    move-result v2

    if-gt v1, v2, :cond_0

    .line 785
    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;->val$time:I

    invoke-virtual {v0, v1}, Landroid/widget/VideoView;->seekTo(I)V

    .line 786
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v2, "timeUpdate"

    new-array v3, v7, [Ljava/lang/Object;

    iget v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;->val$time:I

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v6

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 790
    :goto_0
    return-void

    .line 788
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v2, "couldNotSetTime"

    new-array v3, v6, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    goto :goto_0
.end method
